#include "stdafx.h"
#include "potion.h"

Potion::Potion(bool isManaPotion) :
    _isManaPotion(isManaPotion)
{
}

Potion::Potion(bool isManaPotion, const vec2f &position) :
    SceneObject(position),
    _isManaPotion(isManaPotion)
{
}

Potion::~Potion()
{
}

IBonus::BonusKind Potion::kind() const
{
    return _isManaPotion ? MANA_POTION : HEALTH_POTION;
}

void Potion::accept(ISceneObjectVisitor *visitor)
{
    visitor->visit(this);
}
